package com.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotNull;

@Data
@TableName("pd_patient_transition")
@ApiModel(value = "PatientTransition对象", description = "变动信息表")
public class PatientTransition implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("流水号")
    @TableId(value = "transition_id", type = IdType.AUTO)
    private Integer transitionId;

    @ApiModelProperty("病患序列号")
    @TableId("patient_id")
    private Integer patientId;

    @ApiModelProperty("HIS系统病人编号")
    @TableField("his_patient_id")
    private Integer hisPatientId;

    @ApiModelProperty("住院号")
    @TableField("admission_id")
    private String admissionId;

    @ApiModelProperty("变化类型 0转科 1新入 2术后 3分娩 4出院")
    @TableField("change_type")
    private Integer changeType;

    @ApiModelProperty("变动时间")
    @TableField("change_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date changeTime;

    @ApiModelProperty("转往科室")
    @TableField("ward_id")
    private Integer wardId;

    @ApiModelProperty("所属科室编号")
    @TableField("dept_sn")
    @NotNull(message = "所属科室不能为空")
    private Integer deptSn;

    @TableField("bed_id")
    private String bedId;

    @TableField("medical_leader")
    private Integer medicalLeader;

    @TableField("medical_leader_name")
    private String medicalLeaderName;

    @TableField("doctor_in_charge")
    private Integer doctorInCharge;

    @TableField("doctor_in_charge_name")
    private String doctorInChargeName;

    @TableField("head_nurse")
    private Integer headNurse;

    @TableField("head_nurse_name")
    private String headNurseName;

    @TableField("nurse_in_charge")
    private Integer nurseInCharge;

    @TableField("nurse_in_charge_name")
    private String nurseInChargeName;

    @TableField("hospital_disttrict_name")
    private String hospitalDisttrictName;

    @TableField("hospital_disttrict_id")
    private Integer hospitalDisttrictId;


}